package 第一题;

public class HomeWork5 extends Thread {
    @Override
    public void run() {
        for (int i = 1; i <= 20; i++) {
            System.out.println(i + ".你好，来自线程" + this.getName());
        }
    }

    public static void main(String[] args) {
        Thread thread1 = new HomeWork5();
        Thread thread2 = new HomeWork5();
        thread1.start();
        thread2.start();
    }
}
